<template>
    <div>
        <ul class="icon-list">
            <li v-for="item in $icon" :key="item.icon">
                <i :class="item.icon" />
                <span class="icon-name">{{ item.icon }}</span>
                <span class="icon-content">{{ item.content }}</span>
            </li>
        </ul>
    </div>
</template>

<script>

export default {
    name: 'IconList',
};
</script>

<style lang='scss' scoped>
.icon-list {
    display: grid;

    list-style: none;

    padding: 0 !important;

    grid-gap: 18px;
    grid-template-columns: repeat(5, 1fr);

    li {
        display: flex;

        width: 200px;

        color: #000;

        align-items: center;
        flex-direction: column;
        justify-content: center;

        i {
            display: block;

            font-size: 32px;

            color: #606266;

            transition: transform .3s ease-in-out;
        }

        .icon-name {
            font-size: 14px;
            text-align: center;
        }

        .icon-content {
            font-size: 12px;

            color: #999;
        }

        &:hover {
            i {
                transform: scale(1.5);
            }
        }
    }
}

</style>
